﻿#ifndef __H_MAINWINDOW_H__
#define __H_MAINWINDOW_H__

#include <QMainWindow>


namespace Ui {
	class MainWindow;
}


class CMainWindow :
	public QMainWindow
{
	Q_OBJECT
public:
	CMainWindow(QWidget* parent = Q_NULLPTR, Qt::WindowFlags flags = Qt::WindowFlags());
	virtual ~CMainWindow();
protected:

	void init();

	void show_login();

	void show_mainwindow();
private Q_SLOTS:
	void slot_login();

	void slotItem1();
	void slotItem2();
	void slotItem3();
	void slotItem4();

	void slotGoHome();

	void slotGoLogin();

private:
	bool checkedLoginValid();

	void saveLoginUser();

	void removeLoginUser();

	void updateSaveLogin();

private:

	Ui::MainWindow* m_ui;

};

#endif // __H_MAINWINDOW_H__

